﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BusinessLayer.BO;
using BusinessLayer.Interface;
using EntityLayer;
namespace BusinessLayer.Facade
{
    public class clsFacadeLegajoListar : clsIFacadeLegajoListar
    {
        public List<SGP_LEGAJO> listarLegajo()
        {
            try
            {
                return new clsLegajoBO().listar();
            }
            catch (Exception)
            {
                return null;
                throw;
            }
        }
        public List<SGP_LEGAJO> MostrarLegajo(string ID)
        {
            try
            {
                return new clsLegajoBO().Mostrar(ID);
            }
            catch (Exception)
            {
                return null;
                throw;
            }
        }
        public IEnumerable<Object> listarLegajos()
        {
            try
            {
                return new clsLegajoBO().listarLegajos();
            }
            catch (Exception)
            {
                return null;
                throw;
            }
        }
        public bool ModificarLegajo(SGP_LEGAJO obj)
        {
            try
            {
                return new clsLegajoBO().Modificar(obj);
            }
            catch (Exception)
            {
                return false;
                throw;
            }
        }
    }
}
